package ua.ck.example.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ua.ck.example.dao.UsersDAO;
import ua.ck.example.domain.Users;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UsersDAO userDAO;

	@Transactional
	public List<Users> showUsers() {
		return userDAO.showUsers();
	}

	@Transactional
	public void addUsers(Users user) {
		userDAO.addUsers(user);
	}

	@Transactional
	public void delUsers(Integer id) {
		userDAO.delUsers(id);

	}

}
